package com.game.backend.controller.user.bot;

import com.game.backend.service.user.bot.UpdateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/user/bot")
public class UpdateController {
    @Autowired
    private UpdateService updateService;

    @RequestMapping("/update")
    public Map<String,String> update(int id, String title, String description, String content){
        return updateService.update(id, title, description, content);
    }
}
